package com.dgty.dg_common.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Title: VideoModel
 * Description:
 * Created DateTime: 2023-03-23 17:08
 * Created by xxl.
 */
public class VideoModel implements Parcelable {
    private String mUrl;
    private String mTitle;
    private String mCoverUrl;
    private Long mActionId;

    public VideoModel(String url, String title,String coverUrl,Long actionId) {
        mUrl = url;
        mTitle = title;
        mCoverUrl = coverUrl;
        mActionId = actionId;
    }

    protected VideoModel(Parcel in) {
        mUrl = in.readString();
        mTitle = in.readString();
        mCoverUrl =  in.readString();
        mActionId = in.readLong();
    }

    public static final Creator<VideoModel> CREATOR = new Creator<VideoModel>() {
        @Override
        public VideoModel createFromParcel(Parcel in) {
            return new VideoModel(in);
        }

        @Override
        public VideoModel[] newArray(int size) {
            return new VideoModel[size];
        }
    };

    public String getUrl() {
        return mUrl;
    }

    public void setUrl(String url) {
        this.mUrl = url;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        this.mTitle = title;
    }

    public Long getmActionId() {
        return mActionId;
    }

    public void setmActionId(Long mActionId) {
        this.mActionId = mActionId;
    }

    public String getmCoverUrl() {
        return mCoverUrl;
    }

    public void setmCoverUrl(String mCoverUrl) {
        this.mCoverUrl = mCoverUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(mUrl);
        parcel.writeString(mTitle);
        parcel.writeString(mCoverUrl);
        parcel.writeLong(mActionId);
    }
}
